package com.zju.DoctorGo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zju.DoctorGo.dto.UserEditPasswordDTO;
import com.zju.DoctorGo.dto.UserUnregisterDTO;
import com.zju.DoctorGo.entity.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper extends BaseMapper<User> {


    User getByUserName(String userName);

    Integer updatePassword(UserEditPasswordDTO userEditPasswordDTO);

    Integer deleteByIdAndPassword(UserUnregisterDTO userUnregisterDTO);
}
